Part Number Hot Search : 
1313TF WH2004A PS110 HD74AC V2103 TEN40 59N60 60800
Product Description
Full Text Search
 

To Download PIC32MX Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  ? 2009 microchip technology inc. ds61144d PIC32MX starter kit user?s guide
ds61144d-page ii ? 2009 microchip technology inc. information contained in this publication regarding device applications and the like is prov ided only for your convenience and may be superseded by updates. it is your responsibility to ensure that your application me ets with your specifications. microchip makes no representations or warranties of any kind whether express or implied, written or oral, statutory or otherwise, related to the information, including but not limited to its condition, quality, performance, merchantability or fitness for purpose . microchip disclaims all liability arising from this information and its use. use of microchip devices in life support and/or safe ty applications is entirely at the buyer?s risk, and the buyer agrees to defend, indemnify and hold harmless microchip from any and all damages, claims, suits, or expenses resulting fr om such use. no licenses are conveyed, implicitly or ot herwise, under any microchip intellectual property rights. trademarks the microchip name and logo, the microchip logo, accuron, dspic, k ee l oq , k ee l oq logo, mplab, pic, picmicro, picstart, rfpic, smartshunt and uni/o are registered trademarks of microchip te chnology incorporated in the u.s.a. and other countries. filterlab, linear active thermistor, mxdev, mxlab, seeval, smartsensor and the embedded control solutions company are registered tradema rks of microchip technology incorporated in the u.s.a. analog-for-the-digital age, a pplication maestro, codeguard, dspicdem, dspicdem.net, dspicworks, dsspeak, ecan, economonitor, fansense, in-circuit serial programming, icsp, icepic, mindi, miwi, mpasm, mplab certified logo, mplib, mplink, mtouch, pickit, picdem, picdem.net, pictail, pic 32 logo, powercal, powerinfo, powermate, powertool, real ice, rflab, select mode, total endurance, wiperlock and zena are trademarks of microchip technology incorporated in the u.s.a. and other countries. sqtp is a service mark of mi crochip technology incorporated in the u.s.a. all other trademarks mentioned herein are property of their respective companies. ? 2009, microchip technology incorporated, printed in the u.s.a., all rights reserved. printed on recycled paper. note the following details of the code protection feature on microchip devices: ? microchip products meet the specification cont ained in their particular microchip data sheet. ? microchip believes that its family of products is one of the mo st secure families of its kind on the market today, when used i n the intended manner and under normal conditions. ? there are dishonest and possibly illegal me thods used to breach the code protection feature. all of these methods, to our knowledge, require using the microchip products in a manner outsi de the operating specifications contained in microchip?s data sheets. most likely, the person doing so is engaged in theft of intellectual property. ? microchip is willing to work with the customer who is concerned about the integrity of their code. ? neither microchip nor any other semico nductor manufacturer can guarantee the security of their code. code protection does not mean that we are guaranteeing the product as ?unbreakable.? code protection is constantly evolving. we at microchip are committed to continuously improving the code protection features of our products. attempts to break microchip?s code protection featur e may be a violation of the digi tal millennium copyright act. if such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that act. microchip received iso/ts-16949:2002 certification for its worldwide headquarters, design and wafer fabrication facilities in chandler and tempe, arizona; gresham, oregon and design centers in california and india. the company?s quality system processes and procedures are for its pic ? mcus and dspic ? dscs, k ee l oq ? code hopping devices, serial eeproms, microper ipherals, nonvolatile memory and analog products. in addition, microchip?s quality system for the design and manufacture of development systems is iso 9001:2000 certified.
PIC32MX starter kit user?s guide ? 2009 microchip technology inc. ds61144d-page iii table of contents preface introduction............................................................................................................ 1 document layout .................................................................................................. 1 conventions used in this guide ............................................................................ 2 recommended reading........................................................................................ 3 the microchip web site ........................................................................................ 3 development systems customer chang e notification service ............................ 4 customer support ................................................................................................. 4 document revision history ................................................................................... 5 chapter 1. introducing th e PIC32MX starter kit 1.1 introduction ..................................................................................................... 7 1.2 highlights ........................................................................................................ 7 1.3 kit contents .................................................................................................... 7 1.4 PIC32MX functionality and features ............................................................. 8 1.5 installing the PIC32MX starter kit cd ............................................................ 9 1.6 using the PIC32MX starter kit out of the box ............................................... 9 1.7 PIC32MX demonstration program ................................................................. 9 chapter 2. PIC32MX starter kit tutorial 2.1 introduction ................................................................................................... 11 2.2 highlights ...................................................................................................... 11 2.3 host computer requirements ...................................................................... 11 2.4 installing the starter kit board ...................................................................... 12 2.5 starting the tutorial project .......................................................................... 16 2.6 building the project ...................................................................................... 17 2.7 programming the device .............................................................................. 18 2.8 running the program ................................................................................... 19 2.9 tutorial program operation .......................................................................... 19 chapter 3. create a new project 3.1 introduction ................................................................................................... 23 3.2 highlights ...................................................................................................... 23 3.3 creating a new project ................................................................................ 23 chapter 4. PIC32MX starter kit hardware 4.1 introduction ................................................................................................... 35 4.2 hardware features ....................................................................................... 35
PIC32MX starter kit user?s guide ds61144d-page iv ? 2009 microchip technology inc. appendix a. PIC32MX st arter kit schematics a.1 introduction .................................................................................................. 37 a.2 development board block diagram ............................................................. 37 a.3 starter kit board schematics ....................................................................... 37 index ................ ................. ................ ................ .............. .............. ............... .............. ....43 worldwide sales and service......... ................ ................. ................ ................. ...........44
PIC32MX starter kit user?s guide ? 2009 microchip technology inc. ds61144d-page 1 preface introduction this chapter contains general information t hat will be useful to know before using the PIC32MX. items discussed in this chapter include: ? document layout ? conventions used in this guide ? recommended reading ? the microchip web site ? development systems customer change notification service ? customer support ? document revision history document layout this document describes how to use the pic3 2mx starter kit as a development tool to emulate and debug firmware on a target b oard. the manual is composed of the follow- ing chapters: ? chapter 1. ?introducing the PIC32MX starter kit? provides a brief overview of the PIC32MX starter kit, highlighting its features and uses. ? chapter 2. ?PIC32MX starter kit tutorial? provides step-by-step instructions for installing the PIC32MX and using the microchip mplab ? ide to build and run the tutorial program on the PIC32MX starter kit. ? chapter 3. ?create a new project? provides step-by-step instructions for creating a new project using the mplab ide and loading it onto the PIC32MX starter kit. ? chapter 4. ?PIC32MX starter kit hardware? provides a more detailed description of the features of the hardware included in the PIC32MX starter kit. ? appendix a. ?PIC32MX starter kit schematics? provides a block diagram and detailed schematics of the PIC32MX starter kit. notice to customers all documentation becomes dated, and this manual is no exception. microchip tools and documentation are constantly evolving to meet customer needs, so some actual dialogs and/or tool descriptions may differ from those in this document. please refer to our web site (www.microchip.com) to obtain the latest documentation available. documents are identified with a ?ds? number. this number is located on the bottom of each page, in front of the page number. the numbering convention for the ds number is ?dsxxxxxa?, where ?xxxxx? is th e document number and ?a? is the revision level of the document. for the most up-to-date information on development tools, see the mplab ? ide online help. select the help menu, and then topics to open a list of available online help files.
PIC32MX starter kit user?s guide ds61144d-page 2 ? 2009 microchip technology inc. conventions used in this guide this manual uses the following documentation conventions: documentation conventions description represents examples arial font: italic characters referenced books mplab ? ide user?s guide emphasized text ...is the only compiler... initial caps a window the output window a dialog the settings dialog a menu selection selec t enable programmer quotes a field name in a window or dialog ?save project before build? underlined, italic text with right angle bracket a menu path file>save bold characters a dialog button click ok a tab click the power tab text in angle brackets < > a key on the keyboard press , courier new font: plain courier new sample source code #define start filenames autoexec.bat file paths c:\mcc18\h keywords _asm, _endasm, static command-line options -opa+, -opa- bit values 0, 1 constants (in source code) 0xff, ?a? italic courier new a variable argument file.o , where file can be any valid filename square brackets [ ] optional arguments mcc18 [options] file [options] curly brackets and pipe character: { | } choice of mutually exclusive arguments; an or selection errorlevel {0|1} ellipses... replaces repeated text var_name [, var_name...] represents code supplied by user void main (void) { ... }
preface ? 2009 microchip technology inc. ds61144d-page 3 recommended reading this user?s guide describes how to use the PIC32MX starter kit. the following microchip documents are available and recommended as supplemental reference resources. release notes for PIC32MX starter kit for the latest information on the PIC32MX starter kit, open PIC32MX starter kit release notes.htm located in either the root direct ory of the PIC32MX starter kit cd or (default): c:\microchip starter kits\pic32 starter kits\documentation the file generally contains the most current update information, as well as any issues that may not have been available when this user?s guide was published. PIC32MX data sheet (ds61143) consult this document for detailed information on the PIC32MX general purpose, 32-bit devices. reference information f ound in this data sheet includes: ? device memory map ? device pinout and packaging details ? device electrical specifications ? list of peripherals included on the device mplab ? c compiler for pic32 user?s guide (ds51686) this document, formerly th e mplab c32 c compiler for pi c32 user?s guide, details the use of microchip?s mplab c compiler for pic32 to an develop application. mplab ? ide user?s guide (ds51519) consult this document for more information pertaining to the installation and implementation of the mplab ide software , as well as the mplab editor and mplab sim simulator software that are included with it. the microchip web site microchip provides online su pport via our web site at www.microchip.com . this web site makes files and information easily ava ilable to customers. accessible by most internet browsers, the web site contains the following information: ? product support ? data sheets and errata, application notes and sample programs, design resources, user?s gu ides and hardware support documents, latest software releases and archived software ? general technical support ? frequently asked questions (faqs), technical support requests, online discussion gr oups, microchip consultant program member listings ? business of microchip ? product selector and ordering guides, latest microchip press releases, listings of seminars and events; and listings of microchip sales offices, distributors and factory representatives
PIC32MX starter kit user?s guide ds61144d-page 4 ? 2009 microchip technology inc. development systems customer change notification service microchip?s customer notification service he lps keep customers current on microchip products. subscribers will rece ive e-mail notification wh enever there are changes, updates, revisions or errata related to a spec ified product family or development tool of interest. to register, access the microchip web site at www.microchip.com , click on customer change notification and follow the registration instructions. the development systems product group categories are: ? compilers ? the latest information on microchip c compilers and other language tools. these include the mplab c18 and mplab c30 c compilers, and mplab c compiler for pic32 compilers; asm 32, mpasm? and mplab asm30 assem- blers; mplink?, and mplab link30, mplab link32 object linkers; and mplib? and mplab lib30 object librarians. ? emulators ? the latest informat ion on microchip in-circuit emulators. this includes the mplab real ice? and mplab ice 2000 in-circuit emulators. ? in-circuit debuggers ? the latest information on the microchip in-circuit debuggers. this includes the mplab icd 2 and pickit? 2. ? mplab ? ide ? the latest information on microchip mplab ide, the windows ? integrated development environment for de velopment systems tools. this list is focused on the mplab ide, mplab ide project manager, mplab editor and mplab sim simulator, as well as gener al editing and debugging features. ? programmers ? the latest information on microchip programmers. these include the mplab pm3 device programmer and the picstart ? plus, pickit? 1 and pickit 2 development programmers. customer support several channels are available to assist the users of microchip products: ? distributor or representative ? local sales office ? field application engineer (fae) ? technical support ? development systems information line customers should contact their distributor, representative or fae for support. local sales offices are also available to help cust omers. a list of sales offices and locations is included in the back of this document. technical support is available through the web site http://support.microchip.com .
preface ? 2009 microchip technology inc. ds61144d-page 5 document revision history revision a (october 2007) this is the initial release of th e PIC32MX starter kit user?s guide. revision b (october 2007) removed confidential status. revision c (november 2008) updated the instructions in section 3.3.2 ?task 2, select the language toolsuite? . added connector table in section table 4-1: ?starter board connector part numbers? . revision d (february 2009) updated directory names and associated figures.
PIC32MX starter kit user?s guide ds61144d-page 6 ? 2009 microchip technology inc. notes:
PIC32MX starter kit user?s guide ? 2009 microchip technology inc. ds61144d-page 7 chapter 1. introducing the PIC32MX starter kit 1.1 introduction thank you for purchasing the microchip technology PIC32MX starter kit. this kit provides a low-cost, modular development system for microchip?s new line of 32-bit microcontrollers. the starter kit comes pre-loaded with demons tration software for the user to explore the new features of the PIC32MX. it is al so expandable through a modular expansion interface, which allows the user to extend its functionality. the PIC32MX starter kit also supplies on-board circui try for full debug and pr ogramming capabilities. 1.2 highlights this chapter covers the following topics: ? kit contents ? PIC32MX functionality and features ? installing the PIC32MX starter kit cd ? using the PIC32MX starter kit out of the box ? PIC32MX demonstration program the preprogrammed example code on the PIC32MX mcu has been included on the PIC32MX starter kit cd-rom for future reference. all project files have been included, so that the code may be used directly to restore the PIC32MX mcu on the starter kit to its original state (i.e., if the sample device has been reprogrammed with another program), or so you can use the tutorial code as a platform for further experimentation. 1.3 kit contents the PIC32MX starter kit contains the following items: ? PIC32MX starter kit board ? usb mini-b cable ? pic32 starter kit installation cd-rom, which includes: - PIC32MX starter kit user?s guide (ds61144) - PIC32MX family data sheet (ds61143) - PIC32MX family reference manual (ds61132) - PIC32MX peripheral library manual - code examples for use with the PIC32MX devices if you are missing any part of the kit, contac t a microchip sales office for assistance. a list of microchip offices for sales and service is provided on page 44.
PIC32MX starter kit user?s guide ds61144d-page 8 ? 2009 microchip technology inc. 1.4 PIC32MX functionality and features a representation of the layout of the pic32m x starter kit is shown in figure 1-1. the board includes these key features, as indicated in the diagram: 1. PIC32MX360f512l 32-bit microcontroller 2. green power-indicator led 3. regulated +3.3v power supply for powering the starter kit board via usb or expansion board 4. on-board crystal for precision microcontroller clocking (8 mhz) 5. usb connectivity for on-board debugger communications 6. pic18lf4550 usb microcontroller for on-board debugging 7. orange debug indicator led 8. three push-button switches for user-defined inputs 9. three user-defined indicator leds 10. connector for connecting various expansion boards (on the underside of board) for details on these features, refer to chapter 4. ?PIC32MX starter kit hardware? . figure 1-1: PIC32MX starter kit demo board layout 1 10 7 4 5 6 3 2 8 9 m
introducing the PIC32MX starter kit ? 2009 microchip technology inc. ds61144d-page 9 1.5 installing the pi c32mx starter kit cd the default PIC32MX starter kit installation directory is: c:\microchip starter kits\pic32 starter kits note, throughout this docum ent, the following phrase ? [install directory] ? refers to this default installation, c:\microchip starter kits , or a directory selected by the user during the time of installation. the starter kit cd-rom contains the mpla b ide, mplab c32 c compiler tools, code examples, sample projects, technical documentation, a getting started tutorial, and this PIC32MX starter kit user?s guide . when the cd is placed into your cd drive, an automatic installation app lication will guide you to inst all the tools and relevant documents. 1.6 using the PIC32MX star ter kit out of the box the PIC32MX starter kit may be used directly from the box as a demonstration board for the PIC32MX device. the PIC32MX is preprogrammed with the classic ?simon says? game ( simon_says_demo.hex ) in the PIC32MX360f512l device and is ready for immediate use. 1.6.1 how to play the game when the usb cable is plugged into the star ter kit, the three leds start blinking to indicate the start of a new game. begin th e game by pressing one of the switches, sw1-sw3, to choose the level of game difficulty. sw3 is the easiest, sw1 is the hardest. the goal is to imitate the light patt erns as long as you can, without getting frazzled. ultimately, you will make a mistake a nd all of the leds will light up to signal the end of a game. after a brief pause, you can press a switch again to start a new game. if the starter kit is co nnected to the mplab ide, the game stops. it will be replaced by the mplab ide project that you select when the program button is pressed. the game can be reloaded onto the starter kit by opening simon_says_demo.mcw from the following directory: [install directory]\pic32 starter kits\simon_says_demo 1.7 PIC32MX demonstration program the preprogrammed example code on the PIC32MX has been included as part of the PIC32MX starter kit installation . all project files have been included, so that the code may be used directly to restore a PIC32MX to its original state (i.e., if the sample device has been reprogrammed with another program) or so you can use the tutorial code as a platform for further experimentation.
PIC32MX starter kit user?s guide ds61144d-page 10 ? 2009 microchip technology inc. notes:
PIC32MX starter kit user?s guide ? 2009 microchip technology inc. ds61144d-page 11 chapter 2. PIC32MX starter kit tutorial 2.1 introduction this chapter is a self-paced tutorial to get you started using the PIC32MX starter kit. 2.2 highlights items discussed in th is chapter include: ? host computer requirements ? installing the st arter kit board ? starting with the tutorial project ? building the project ? programming the device ? running the program ? operation of the tutorial program 2.3 host computer requirements to communicate with and program the starter kit board, the following hardware and software requirements must be met: ? pc-compatible system ? an available usb port on pc or powered usb hub ? cd-rom drive ? microsoft windows xp ? (the PIC32MX starter kit has not been tested on windows nt ? , windows 2000 ? or microsoft vista? operating systems)
PIC32MX starter kit user?s guide ds61144d-page 12 ? 2009 microchip technology inc. 2.4 installing the starter kit board as a usb device, the starter kit board requires very little effort to install; most of the work is done by the operating system . begin by closing all applications. 2.4.1 install the tools and projects 1. insert the pic32 starter kit cd into yo ur cd-rom drive and c lick the install from cd menu option. if the installation application does not automatically start, navigate to the files on the cd and open setup.exe . the following window is displayed: figure 2-1: installing th e pic32 starter kit board 2. reboot your system when prompted to do so. note: the dialog also provides an option to check the microchip web site for newer versions of the starter kit software.
PIC32MX starter kit tutorial ? 2009 microchip technology inc. ds61144d-page 13 2.4.2 view the getting started tutorial perform the following steps to view the tutorial: 1. after your computer has rebooted, the getting started tutorial menu opens. 2. view the tutorial instructions for connecting to the starter kit board and running the tutorial project. if you performed the installation steps as you followed along in the getting started tutorial, skip to section 2.5 ?starting the tutorial project? on page 16. if you did not, continue to the next page for instructions about how to connect the board and install the device driver. 2.4.3 connect the starter kit board using the supplied usb cable, connect the bo ard to an open usb port on your com- puter. (a usb hub that is not bus-powered can also be used.) connect the other end of the cable into the usb connector on the starter kit board. check the board: the green power led d3 should be lit. if it is not, check the connections at the port, hub, and board. 2.4.4 install the usb device driver perform the following steps to install the usb device driver: 1. when the usb cable is connected, the ?found new hardware wizard? dialog box opens, as shown in figure 2-2. when asked whether to install the software automatically or install from a list or s pecific location, select ?install software automatically? and click next . figure 2-2: found new hardware wizard note: the usb driver installation steps described here refer specifically to installing the driver on a microsoft windows xp operating system.
PIC32MX starter kit user?s guide ds61144d-page 14 ? 2009 microchip technology inc. 2. as shown in figure 2-3, the next dialog box tracks the wizard as it searches for the device. (this activity may take se veral seconds.) when it is done, click next . figure 2-3: hardware wizard ? searching for device 3. if prompted to sele ct a driver, select mp32mxsk.inf , as shown in figure 2-4. click next to continue. figure 2-4: hardware wizard ? selecting the driver
PIC32MX starter kit tutorial ? 2009 microchip technology inc. ds61144d-page 15 4. if prompted with a dialog box for windows logo testing, as shown in figure 2-5, click continue anyway . figure 2-5: windows logo testing 5. the next window (figure 2-6) in dicates that the installation of the software for the starter kit is complete. click finish . figure 2-6: completing d evice driver installation
PIC32MX starter kit user?s guide ds61144d-page 16 ? 2009 microchip technology inc. 2.5 starting the tutorial project click the mplab ide icon on your computer desktop. the mplab ide opens with the starter kit tutorial project loaded, as s hown in figure 2-7. if the mplab ide does not have the starter kit tutorial project loaded, select file>open workspace... from the menu bar and browse to the tutorial project file: [install directory]\pic32 starter kits\ starter_kit_tutorial\starter_kit_tutorial.mcw (or browse to the file path you used when you installed the mplab ide). the pane on the left of the mplab ide interface displays project files, the ? .c ?, ? .h ? and ? .a ? files that are used to build an application. the project files are organized by type into folders. ?starter kit found? should be displayed in the ?output? pane of the mplab ide inter- face. if you do not see this message, select debugger>select tool>PIC32MX starter kit from the menu bar. if that sequence fails to find the project, check the driver installation, as well as the connections between the hardware and the pc. figure 2-7: mplab ? ide workspace
PIC32MX starter kit tutorial ? 2009 microchip technology inc. ds61144d-page 17 2.6 building the project from the menu bar of the ma in mplab ide window, click project>make . the build output window displays, as shown in figure 2-8. observe the progress of the build. when the ?build succeeded? message displays, you are ready to program the device. figure 2-8: build output window
PIC32MX starter kit user?s guide ds61144d-page 18 ? 2009 microchip technology inc. 2.7 programming the device 2.7.1 program the device click on the program all memori es icon on the program device tool bar, as shown in figure 2-9). figure 2-9: program device tool bar a programming warning window (figure 2-10) opens to warn you about overwriting the memory. click yes . figure 2-10: progra mming warning window the output window (figure 2-11) tracks the progress of the output. a ?done? entry indicates that the programming of the device is complete. figure 2-11: output window
PIC32MX starter kit tutorial ? 2009 microchip technology inc. ds61144d-page 19 2.8 running the program either click debugger>run from the menu bar of the mplab ide or click the run icon (the turquoise triangle) on the debug tool bar (figure 2-12) to run the new program. figure 2-12: debug window 2.9 tutorial program operation the starter kit tutorial demonstrates a si mple application. the program responds according to the user input menu. the program prints the available menu choices to the starter kit output windo w in the mplab ide. the program flow is shown in figure 2-13.
PIC32MX starter kit user?s guide ds61144d-page 20 ? 2009 microchip technology inc. figure 2-13: PIC32MX tu torial program flowchart power up display the build date and time ask user for the menu choice is menu choice ?e? or ?e?? ask user for the string of maximum 256 characters display the user string back to the output window return no yes initialize the leds is ?repeat? == ?x? is menu choice ?r? or ?r?? is menu choice ?o? or ?o?? is menu choice ?g? or ?g?? is menu choice ?x? or ?x?? toggle the red led toggle the orange led toggle the green led display that the user choice is invalid and toggle all the leds once. display that the program has terminated make repeat = ?x? yes yes yes yes no no no no yes no
PIC32MX starter kit tutorial ? 2009 microchip technology inc. ds61144d-page 21 the tutorial program includes the debug print library, which facilitates print functional- ity. a peripheral library header file for fl ashing the leds is also included. the header file for print functionality is db_utils.h . depending on the macro definition given in the print header file, the debug print macros will be expanded. the print functionality in the tutorial is routed to the output window on the mplab PIC32MX tab in the interface window. in order to achieve this, the macro definition ?pic32_starter_kit? is added to the mplab c compiler for pic32 options. as the program runs, the output window (figure 2-14) tracks the progress. figure 2-14: output window after printing the menu, the application disp lays a prompt that requests your input, see figure 2-15. figure 2-15: target in window type your choice into the enter information to be sent to target box, and click send . the program responds according to the menu entry. watch the leds on the starter kit board. if your entry is incorr ect, the leds will toggle once.
PIC32MX starter kit user?s guide ds61144d-page 22 ? 2009 microchip technology inc. notes:
PIC32MX starter kit user?s guide ? 2009 microchip technology inc. ds61144d-page 23 chapter 3. create a new project 3.1 introduction this chapter explains how to create a new project. 3.2 highlights items discussed in th is chapter include: ? creating a new project ? building the project ? programming the device ? running the program after completing this chapter, you should be able to accomplish the following tasks: ? create a project using the project wizard ? assemble and link the code, and set the configuration bits ? set up the mplab ide to use the PIC32MX starter kit ? program the chip, and run the program 3.3 creating a new project the first step is to create a project and a workspace in the mplab ide. typically, there is a single project per workspace. a project contains the files needed to build an application (i.e., source code, header files, library, etc.), and thei r corresponding build options. a workspace contains one or more projects, information on the selected device, debug/programmer tool, and mplab ide configuration settings. mplab ide contains a project wizard to help create a new project. you will perform the following tasks as you create a new project: task 1, select a device ..................................................... page 24 task 2, select the language toolsuite ............................ page 25 task 3, name your project ................................................ page 26 task 4, add files to your project ..................................... page 27 task 5, confirm the configuration settings .................... page 30 task 6, build the project .................................................. page 31 task 7, program the device .............................................. page 32 task 8, run the program ................................................... page 33
PIC32MX starter kit user?s guide ds61144d-page 24 ? 2009 microchip technology inc. 3.3.1 task 1, select a device 1. start mplab ide. 2. click file>close workspace on the menu bar, to close any workspace that is open. 3. click project>project wizard... to start the wizard. 4. in the welcome window, click next . the project wizard step one: window is displayed, as shown in figure 3-1. figure 3-1: selecting the device 5. from the ?device? drop-down list, select ?PIC32MX360f512l?. 6. click next . the project wizard step two: dialog box opens, as shown in figure 3-2.
create a new project ? 2009 microchip technology inc. ds61144d-page 25 figure 3-2: selecting the toolsuite 3.3.2 task 2, select the language toolsuite 1. from the ?active toolsuite? drop-down list, click ?microchip pic32 c compiler toolsuite?. the toolsuite in cludes the assembler and lin ker that will be used. if the pic32 compiler option is not available, ch eck the ?show all installed toolsuites? box. 2. click next to continue. the project wizard step three: dialog opens, as shown in figure 3-3.
PIC32MX starter kit user?s guide ds61144d-page 26 ? 2009 microchip technology inc. figure 3-3: naming your project 3.3.3 task 3, name your project 1. in the ?create new project file? field, type c:\myproject\blinkled . 2. click next and ok to continue. the project wizard step four: dialog opens, as shown in figure 3-4.
create a new project ? 2009 microchip technology inc. ds61144d-page 27 figure 3-4: adding files to the project 3.3.4 task 4, add files to your project this window can be skipped, since no ? .c ? files have been created. 1. click next to continue. 2. click finish on the summary screen. 3. a project and workspace have been created in the mplab ide. blinkled.mcw is the workspace file and blinkled.mcp is the project file. 4. click file>new from the menu bar to create a new file. a new file is displayed. 5. click file>save as... and save this file as ? blinkled.c ? in the same folder (in this case, the c:\myproject folder). 6. now copy the source code provided in example 3-1 to the blinkled.c file. the source code file is located in the pic32 starter kit directory: [install directory]\pic32 starter kits\blink_leds .
PIC32MX starter kit user?s guide ds61144d-page 28 ? 2009 microchip technology inc. example 3-1: project source code #include // adds support for pic32 peripheral library functions and macros void delay(unsigned int count) { while(--count); } int main(void) { /* led setup - turn off leds before configuring the io pin as output */ mportdclearbits(bit_0 | bit_1 | bit_2); // same as latdclr = 0x0007 /* set rd0, rd1 and rd2 as outputs */ mportdsetpinsdigitalout(bit_0 | bit_1 | bit_2 ); // same as trisdclr = 0x0007 /* endless loop */ while(1) { delay(200000); mportdtogglebits(bit_0); // toggle led0 (same as latdinv = 0x0001) delay(200000); mportdtogglebits(bit_1); // toggle led1 (same as latdinv = 0x0002) delay(200000); mportdtogglebits(bit_2); // toggle led2 (same as latdinv = 0x0004) }; return 0; }
create a new project ? 2009 microchip technology inc. ds61144d-page 29 7. in the project window, right-click on the source files folder. select add files and choose blinkled.c to add the file to the source directory, as shown in figure 3-5. figure 3-5: adding source files 8. click debugger>select tool>PIC32MX starter kit from the menu bar, for the target board. note: make sure that the starter kit demo board is connected to your pc.
PIC32MX starter kit user?s guide ds61144d-page 30 ? 2009 microchip technology inc. 3.3.5 task 5, confirm the configuration settings click configure>configuration bits to confirm that the configuration settings are cor- rect. typical configuration settings for the starter kit are shown in figure 3-6. figure 3-6: configura tion bit settings note: the ?configuration bits set in code? check box must be unchecked if the config bits are set via this window and not in the code. the configuration settings can also be embedded in the source file. see the mplab c compiler for pic32 user?s guide (ds51686) for information. caution setting the pic32 starter kit configuratio n bits to cause the PIC32MX to oper- ate faster than the maximum 80mhz system clock speed may cause the PIC32MX to stop communicating with the pic18f4550 starter kit debugger. should this occur, run the sk_erase.exe utility to re-flash the PIC32MX with a default configuration. this utility is lo cated on the pic32 starter kit cd or in the PIC32MX starter kit directory: [install directory]\pic32 starter kits\tools
create a new project ? 2009 microchip technology inc. ds61144d-page 31 3.3.6 task 6, build the project 1. click project>make from the menu bar of the main mplab ide window. the build output window displays (figure 3-7). 2. observe the progress of the build. when the ?build succeeded? message displays, you are ready to program the device. figure 3-7: build output window
PIC32MX starter kit user?s guide ds61144d-page 32 ? 2009 microchip technology inc. 3.3.7 task 7, program the device 1. click the program all memories icon on th e program device tool bar, as shown in figure 3-8. figure 3-8: program device window a programming warning window (figure 3-9) o pens to warn you about overwriting the memory. 2. click yes . figure 3-9: programming warning window the output window (figure 3-10) tracks the progress of the output. ?done? signals that the programming of the device is complete. figure 3-10: output window
create a new project ? 2009 microchip technology inc. ds61144d-page 33 3.3.8 task 8, run the program click debugger>run from the menu bar of the mplab ide or click the run icon (the turquoise triangle) on the debug tool bar, as indicated in figure 3-11, to run the new program. figure 3-11: run the program the starter kit leds blink to indicate that the program is running successfully.
PIC32MX starter kit user?s guide ds61144d-page 34 ? 2009 microchip technology inc. notes:
PIC32MX starter kit user?s guide ? 2009 microchip technology inc. ds61144d-page 35 chapter 4. PIC32MX starter kit hardware 4.1 introduction this chapter describes the hardware features of the PIC32MX starter kit. 4.2 hardware features the key features of the PIC32MX starter kit are listed below. they are presented in the order given in section 1.4 ?PIC32MX functionality and features? . you can refer to figure 1-1 on page 8 for their locations on the board. 4.2.1 processor support the PIC32MX starter kit is designed with a permanently mounted (i.e., soldered) PIC32MX360f512l processor. 4.2.2 power supply there are two ways to supply power to the PIC32MX starter kit: ? usb bus power connected to j1. ? an external application board with a regula ted dc power supply that provides +5v can be connected to the j2 application board connector that is provided on the bottom side of the board. one green led (d3) is provided to show th at the pic32 microcontroller is powered up. 4.2.3 usb connectivity the PIC32MX starter kit includes a pic18l f4550 usb microcontroller, which provides both usb connectivity and support for pr otocol translation. the pic18lf4550 is hard-wired to the PIC32MX device to provide two types of connectivity: ? i/o pins of pic18lf4550 to icsp? pins of PIC32MX ? i/o pins of pic18lf4550 to jtag pins of PIC32MX the PIC32MX starter kit currently uses t he jtag pins of the PIC32MX device for programming and debugging. note: the basic PIC32MX starter kit does not include an application board and is intended to be usb-bus powered.
PIC32MX starter kit user?s guide ds61144d-page 36 ? 2009 microchip technology inc. 4.2.4 switches push-button switches provide the following functionality: ? sw1: active-low switch connected to rd6 ? sw2: active-low switch connected to rd7 ? sw3: active-low switch connected to rd13 the switches do not have any debounce circ uitry and require the use of internal pull- up resistors; this allows you to investigate debounce techniques. when idle, the switches are pulled high (+3.3v). when pressed, they are grounded. 4.2.5 leds the leds, rd0 through rd2, are connected to portd of the processor. the portd pins are set high to light the leds. 4.2.6 oscillator options the installed microcontroller ha s an oscillator circuit connect ed to it. the main oscillator uses an 8 mhz crystal (y2) and functions as the controller?s primar y oscillator. use of an external crystal is not required for pic 32 designs. your design may use the internal oscillator, if desired. the pic18lf4550, at the heart of the usb subsystem, is independently clocked and has its own 8 mhz crystal (y1). 4.2.7 120-pin modular expansion connector the PIC32MX starter kit demo board has been designed with a 120-pin modular expansion interface, which allows the board to provide basic generic functionality now, as well as easy extendability to new tech nologies as they become available. table 4-1: starter board connector part numbers connector hirose electric pn starter board connector fx10a-120p/12-sv1(71) application board connector fx10a-120s/12-sv(71)
PIC32MX starter kit user?s guide ? 2009 microchip technology inc. ds61144d-page 37 appendix a. PIC32MX starter kit schematics a.1 introduction this section provides detailed technical information about the PIC32MX starter kit. a.2 development board block diagram figure a-1: high-level block diag ram of the PIC32MX starter kit a.3 starter kit board schematics figure a-2. PIC32MX cpu figure a-3. pic18lf4550 debug cpu figure a-4. application board connector figure a-5. switches and leds figure a-6. power supply PIC32MX360f512l pic18lf4550 icsp? jtag power supply +3.3v vusb or +5v_ext switches leds usb application bd. connector
PIC32MX starter kit user?s guide ds61144d-page 38 ? 2009 microchip technology inc. figure a-2:PIC32MX schematic, sheet 1 of 6 (PIC32MX cpu)
? 2009 microchip technology inc. ds61144d-page 39 figure a-3: PIC32MX schematic, sheet 2 of 6 (pic18lf4550 debug cpu)
PIC32MX starter kit user?s guide ds61144d-page 40 ? 2009 microchip technology inc. figure a-4: PIC32MX schematic, sheet 3 of 6 (application board connector)
? 2009 microchip technology inc. ds61144d-page 41 figure a-5: PIC32MX schematic, sheet 5 of 6 (switches and leds)
PIC32MX starter kit user?s guide ds61144d-page 42 ? 2009 microchip technology inc. figure a-6: PIC32MX schematic, sheet 6 of 6 (power supply)
PIC32MX starter kit user?s guide ? 2009 microchip technology inc. ds61144d-page 43 index a active toolsuite ...................................................... 25 b building the tutorial project ..................................... 17 c connect the starter kit board ................................. 13 create a project build the project .............................................. 31 configuration settings ...................................... 30 customer change notification service ..................... 4 customer support ..................................................... 4 d debug print library .................................................. 21 documentation conventions ....................................................... 2 h hardware features leds ................................................................ 36 oscillator options ............................................ 36 pictail plus card edge connectors ................ 36 power supply .................................................. 35 processor support ........................................... 35 switches .......................................................... 36 usb connectivity ............................................. 35 host computer requirements ................................ 11 i installing the starter kit board ............................... 12 installing the usb device driver ............................. 13 internet address ....................................................... 3 l language toolsuite ................................................ 25 last schematic ....................................................... 42 leds power .............................................................. 13 m microchip internet web site ...................................... 3 mplab ...................................................................... 9 mplab ide simulator, editor user?s guide ............. 3 p PIC32MX layout 32-bit microcontroller .................................. 8 connector for expansion boards ................ 8 debug indicator led .................................. 8 on-board crystal ......................................... 8 pic18lf4550 usb microcontroller ............ 8 power supply .............................................. 8 power-indicator led ................................... 8 switches ..................................................... 8 usb connectivity ........................................ 8 user-defined leds ..................................... 8 PIC32MX out of the box ........................................... 9 preprogrammed game ....................................... 9 preprogrammed example code ................................. 9 print functionality ..................................................... 21 project wizard ......................................................... 23 r readme 3 restore PIC32MX original programming .................. 9 s schematics application board connector ........................... 40 pic18lf4550 debug cpu .............................. 39 PIC32MX cpu ................................................. 38 power supply ................................................... 42 switches and leds .......................................... 41 starter kit board block diagram ................................................. 37 connecting ....................................................... 13 installing ........................................................... 12 installing device driver ..................................... 13 t tutorial program operation .................................... 19 tutorial project program operation ........................................... 19 programming the device .................................. 18 starting ............................................................ 16 u usb connectivity ..................................................... 35 w www address .......................................................... 3
ds61144d-page 44 ? 2009 microchip technology inc. americas corporate office 2355 west chandler blvd. chandler, az 85224-6199 tel: 480-792-7200 fax: 480-792-7277 technical support: http://support.microchip.com web address: www.microchip.com atlanta duluth, ga tel: 678-957-9614 fax: 678-957-1455 boston westborough, ma tel: 774-760-0087 fax: 774-760-0088 chicago itasca, il tel: 630-285-0071 fax: 630-285-0075 cleveland independence, oh tel: 216-447-0464 fax: 216-447-0643 dallas addison, tx tel: 972-818-7423 fax: 972-818-2924 detroit farmington hills, mi tel: 248-538-2250 fax: 248-538-2260 kokomo kokomo, in tel: 765-864-8360 fax: 765-864-8387 los angeles mission viejo, ca tel: 949-462-9523 fax: 949-462-9608 santa clara santa clara, ca tel: 408-961-6444 fax: 408-961-6445 toronto mississauga, ontario, canada tel: 905-673-0699 fax: 905-673-6509 asia/pacific asia pacific office suites 3707-14, 37th floor tower 6, the gateway harbour city, kowloon hong kong tel: 852-2401-1200 fax: 852-2401-3431 australia - sydney tel: 61-2-9868-6733 fax: 61-2-9868-6755 china - beijing tel: 86-10-8528-2100 fax: 86-10-8528-2104 china - chengdu tel: 86-28-8665-5511 fax: 86-28-8665-7889 china - hong kong sar tel: 852-2401-1200 fax: 852-2401-3431 china - nanjing tel: 86-25-8473-2460 fax: 86-25-8473-2470 china - qingdao tel: 86-532-8502-7355 fax: 86-532-8502-7205 china - shanghai tel: 86-21-5407-5533 fax: 86-21-5407-5066 china - shenyang tel: 86-24-2334-2829 fax: 86-24-2334-2393 china - shenzhen tel: 86-755-8203-2660 fax: 86-755-8203-1760 china - wuhan tel: 86-27-5980-5300 fax: 86-27-5980-5118 china - xiamen tel: 86-592-2388138 fax: 86-592-2388130 china - xian tel: 86-29-8833-7252 fax: 86-29-8833-7256 china - zhuhai tel: 86-756-3210040 fax: 86-756-3210049 asia/pacific india - bangalore tel: 91-80-3090-4444 fax: 91-80-3090-4080 india - new delhi tel: 91-11-4160-8631 fax: 91-11-4160-8632 india - pune tel: 91-20-2566-1512 fax: 91-20-2566-1513 japan - yokohama tel: 81-45-471- 6166 fax: 81-45-471-6122 korea - daegu tel: 82-53-744-4301 fax: 82-53-744-4302 korea - seoul tel: 82-2-554-7200 fax: 82-2-558-5932 or 82-2-558-5934 malaysia - kuala lumpur tel: 60-3-6201-9857 fax: 60-3-6201-9859 malaysia - penang tel: 60-4-227-8870 fax: 60-4-227-4068 philippines - manila tel: 63-2-634-9065 fax: 63-2-634-9069 singapore tel: 65-6334-8870 fax: 65-6334-8850 taiwan - hsin chu tel: 886-3-572-9526 fax: 886-3-572-6459 taiwan - kaohsiung tel: 886-7-536-4818 fax: 886-7-536-4803 taiwan - taipei tel: 886-2-2500-6610 fax: 886-2-2508-0102 thailand - bangkok tel: 66-2-694-1351 fax: 66-2-694-1350 europe austria - wels tel: 43-7242-2244-39 fax: 43-7242-2244-393 denmark - copenhagen tel: 45-4450-2828 fax: 45-4485-2829 france - paris tel: 33-1-69-53-63-20 fax: 33-1-69-30-90-79 germany - munich tel: 49-89-627-144-0 fax: 49-89-627-144-44 italy - milan tel: 39-0331-742611 fax: 39-0331-466781 netherlands - drunen tel: 31-416-690399 fax: 31-416-690340 spain - madrid tel: 34-91-708-08-90 fax: 34-91-708-08-91 uk - wokingham tel: 44-118-921-5869 fax: 44-118-921-5820 w orldwide s ales and s ervice 02/04/09


▲Up To Search▲   

 
Price & Availability of PIC32MX

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X